package com.chinasofti.demo04;

class GrandPa{
    int num = 5;
}

public class Fu extends GrandPa {
    int num = 10;
}
class Zi extends Fu{
    int num = 20;
    public void show(){
        int num = 30;
        System.out.println(num);
    }
}
class Demo04{
    public static void main(String[] args) {
        Zi z = new Zi();
        z.show();
    }
}